package com.demo.prac;

import org.apache.jute.CsvOutputArchive;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description:
 * @author: fanfan
 * @date: 2018/6/21 15:58
 */
public class TestSub {
    public static  void main(String args[]) throws ParseException {
        System.out.println(new SimpleDateFormat("yyyyMMdd").format(new Date()));

            System.out.println(new SimpleDateFormat("yyyyMMdd").parse("20180623"));

    }
}
